package org.bongo.open.cumulo.core.context;

import java.util.*;

/**
 * @author smitha
 *
 */
public abstract class BaseContext {

	private Map<String, String> contextStore;

	public BaseContext() {
		contextStore = new HashMap<String, String>();
	}
	
	/**
	 * return value for a given ContextKey
	 * @param key
	 * @return
	 */
	public String getContextValue(String key) {
		return contextStore.get(key);
	}
	
	/**
	 * returns an array of all keys
	 * @return
	 */
	public String[] getContextKeys() {
		return (String[]) contextStore.keySet().toArray();
	}

	@Override
	public String toString() {
		return "BaseContext [contextStore=" + contextStore + "]";
	}
	
	
}
